package com.txx.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @Author: zgc
 * @Date: 2021/5/19 9:32
 */
@Data
@Accessors(chain = true)
@TableName("txx_goods_category")
public class GoodsCategory extends BasePojo {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private Integer parentId;
    private String img;
    private Integer level;
    private Integer sort;
    private Boolean status;
    @TableField(exist = false)
    private List<GoodsCategory> children;
}
